package com.ruoyi.swla2.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 小用户冻结数据对象 dm_terminals_freeze_xb
 *
 * @author gdqt
 * @date 2023-08-28
 */
public class TerminalsFreezeXb extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 设备归属租户
     */
    private String tenantId;

    /**
     * 层级ID
     */
    private String AreaID;

    /**
     * 用户编号
     */
    @Excel(name = "用户编号")
    private String TerminalID;

    /**
     * 用户名称
     */
    @Excel(name = "用户名称")
    private String userName;

    /**
     * 净累计量
     */
    @Excel(name = "用水量(m³)")
    private BigDecimal cumulativeFlow;

    /**
     * 环比上月
     */
    @Excel(name = "环比上月(%)")
    private String hb;

    /**
     * 用户平均用水量
     */
    @Excel(name = "平均每日用水量(m³)")
    private BigDecimal userAvg;

    /**
     * 前3月平均用水量
     */
    @Excel(name = "前3月平均用水量")
    private String cumulativeFlowAvg;

    /**
     * 冻结时间（日）
     */
    @Excel(name = "抄表时间")
    private String FreezeTime;

    private String Remark;

    /**
     * 冻结类型，日：day，月：month
     */
    private String frozenType;

    /**
     * 插入时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date sysDate;

    /**
     * 平台表单自增主键
     */
    private Long ID;

    private TerminalsXb terminalsXb;

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public String getAreaID() {
        return AreaID;
    }

    public void setAreaID(String areaID) {
        AreaID = areaID;
    }

    public String getTerminalID() {
        return TerminalID;
    }

    public void setTerminalID(String terminalID) {
        TerminalID = terminalID;
    }

    public BigDecimal getCumulativeFlow() {
        return cumulativeFlow;
    }

    public void setCumulativeFlow(BigDecimal cumulativeFlow) {
        this.cumulativeFlow = cumulativeFlow;
    }

    public String getCumulativeFlowAvg() {
        return cumulativeFlowAvg;
    }

    public void setCumulativeFlowAvg(String cumulativeFlowAvg) {
        this.cumulativeFlowAvg = cumulativeFlowAvg;
    }

    public BigDecimal getUserAvg() {
        return userAvg;
    }

    public void setUserAvg(BigDecimal userAvg) {
        this.userAvg = userAvg;
    }

    public String getHb() {
        return hb;
    }

    public void setHb(String hb) {
        this.hb = hb;
    }

    public String getFreezeTime() {
        return FreezeTime;
    }

    public void setFreezeTime(String freezeTime) {
        FreezeTime = freezeTime;
    }

    @Override
    public String getRemark() {
        return Remark;
    }

    @Override
    public void setRemark(String remark) {
        Remark = remark;
    }

    public String getFrozenType() {
        return frozenType;
    }

    public void setFrozenType(String frozenType) {
        this.frozenType = frozenType;
    }

    public Date getSysDate() {
        return sysDate;
    }

    public void setSysDate(Date sysDate) {
        this.sysDate = sysDate;
    }

    public Long getID() {
        return ID;
    }

    public void setID(Long ID) {
        this.ID = ID;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public TerminalsXb getTerminalsXb() {
        return terminalsXb;
    }

    public void setTerminalsXb(TerminalsXb terminalsXb) {
        this.terminalsXb = terminalsXb;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("tenantId", getTenantId())
                .append("AreaID", getAreaID())
                .append("TerminalID", getTerminalID())
                .append("cumulativeFlow", getCumulativeFlow())
                .append("cumulativeFlowAvg", getCumulativeFlowAvg())
                .append("userAvg", getUserAvg())
                .append("hb", getHb())
                .append("FreezeTime", getFreezeTime())
                .append("Remark", getRemark())
                .append("frozenType", getFrozenType())
                .append("sysDate", getSysDate())
                .append("ID", getID())
                .toString();
    }
}
